package com.learning.rpc_common.request;

import java.io.Serializable;

public class RpcResponse implements Serializable {
    private static final long serialVersionUID = -7970942815543515064L;
    private int code;
    private String error_msg;
    private Object data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getError_msg() {
        return error_msg;
    }

    public void setError_msg(String error_msg) {
        this.error_msg = error_msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "RpcResponse{" +
                "code=" + code +
                ", error_msg='" + error_msg + '\'' +
                ", data=" + data +
                '}';
    }
}
